<?php

namespace ms\modules\article\models;

use Yii;

/**
 * This is the model class for table "dh_article_site".
 *
 * @property integer $id
 * @property integer $article_id
 * @property integer $site_id
 */
class ArticleSite extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_article_site';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['article_id', 'site_id'], 'integer'],
            [['site_id'], 'required']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '编号',
            'article_id' => '文章',
            'site_id' => '站点',
        ];
    }
}
